
$(function () {
    var index = {
        init: function () {
            this.event();
        },
        event: function () {
            // 搜索
            this.search();
            // 头部轮播
            this.swiper();
        },
        // 搜索
        search: function () {
             $('.searchbar_wrap').searchBar({
                cancelText:"取消",
                searchText:'关键字',
                onfocus: function (value) {
                   
                },
                onblur:function(value) {

                },
                oninput: function(value) {

                },
                onsubmit:function(value){
                },
                oncancel:function(){

                },

                onclear:function(){

                }
            });
        },
        // 头部轮播
        swiper: function () {
            var swiper = new Swiper('.swiper-container', {
                pagination: '.swiper-pagination',
                paginationClickable: true
            });
        }
    }
    index.init();    
});